<div class="adminPanel">
	
</div>
<?php
echo $this->linkToSubmit('subject','Pridať','subjectForm');
echo $this->form;
?>
<table class="questions">
<?php 
if($this->subject->current()->qid != null):
	foreach($this->subject as $subject):
?>

	<tr id="<?= $subject->qid ?>">
		<td><?= ++$subject->qn ?></td>
		<td><?= $subject->text ?></td>		
	</tr>
	
<?php 
	endforeach;
endif; 
?>
</table>